const BASE_URL = "http://localhost:3000";
// const BASE_URL = "http://blogsapi.zhouziao.cn";
const API = {
    LOGIN: {
        LOGIN_ACTION: BASE_URL + '/admin/login_action',
        LOGIN_UPDATE: BASE_URL + '/admin/create_admin',
        LOGIN_OUT: BASE_URL + '/admin/loginout_action',
        LOGIN_CHECK:BASE_URL+'/admin/login_check'
    },
    ESSAY: {
        ESSAY_GET: BASE_URL + '/essay/get_essay',
        ESSAY_GET_ALL: BASE_URL + '/essay/get_essay_all',
        ESSAY_GET_COUNT: BASE_URL + '/essay/get_essay_count',
        ESSAY_UPDATE: BASE_URL + '/essay/update_essay',
        ESSAY_DESTROY: BASE_URL + '/essay/destroy_essay',
        ESSAY_CREATE: BASE_URL + '/essay/create_essay',
        ESSAY_CHANGE_STATUS: BASE_URL + '/essay/change_status_essay',
        ESSAY_UPLOAD_IMAGE: BASE_URL + '/essay/upload_image',
    }
}
const NAV = [
    {
        field: 'essay',
        title: '文章管理',
        icon: 'iconbiji'
    },
    {
        field: 'admin',
        title: '用户管理',
        icon: 'iconxingmingyonghumingnicheng'
    }
]
export {
    API,
    BASE_URL,
    NAV
}